package com.hzt.agprosaleplatform.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hzt.agprosaleplatform.entity.Article;
import com.hzt.agprosaleplatform.entity.Expert;
import com.hzt.agprosaleplatform.entity.ExpertQuestion;
import com.hzt.agprosaleplatform.entity.ShortQuestionDTO;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

public interface ExpertService {
    List<Expert> RecommendedExperts();

//    申请成为专家-BeExpert
    Expert BeExpert(Expert expert);

    //修改专家信息-updateExpertInfo(文)
//    Expert updateExpertInfo(Expert expert);

//    发布农产科普知识-postAgNotes
    Article postArticle(Article article, List<MultipartFile> articleImages);

    //获取科普文章内容
    Map<String, Object> getArticleWithImages(Integer articleId);

    //获取科普文章卡片内容
    List<Article> getArticleCard();


    //修改科普知识帖子-updateNotes

    //删除科普帖子-deleteNotes

    //删除专家问答（文）
//    void deleteQuestion(Integer qid);

    //发布问答帖子-addQuestion
    ExpertQuestion addNewQuestion(ExpertQuestion expertQuestion);

    //获取问题详情-detailedQuestion  --还未回答状态
    ExpertQuestion selectQuestionByQid(int qid);

    //处理农产问答-answerQuestion   --专家做回复，写入eid和answer，修改状态
    ExpertQuestion answerQuestion(Integer qid,String answer);

    String moreAnswer(String uid,Integer qid,String answer);

    //获取更多的回复内容
    List<ExpertQuestion> getMoreAnswer(Integer qid);

    //罗列问题清单-全部专家-ListQuestion   做一个分页查询
    IPage<ExpertQuestion> ListAllQuestion(int pageNum, int pageSize);

    //专家指导预约-addReserveTable  --user用户使用

    //获取到专家个人的信息
    Expert selectExpertById(String eid);

    List<ShortQuestionDTO> shortQuestionList(String eid);



}
